import type { RouteRecordRaw } from 'vue-router'
import { Layout } from '../constant'
import IconMenuHome from '~icons/local/menu-home-color'

export default <RouteRecordRaw> {
  path: '/user-center',
  component: Layout,
  redirect: '/user-center/profile',
  meta: {
    title: '用户中心',
    icon: shallowRef(IconMenuHome),
    sort: 1,
    hidden: true,
  },
  children: [
    {
      path: 'profile',
      name: 'SettingProfile',
      meta: { title: '个人中心', hidden: true },
      component: () => import('@/views/setting/profile/index.vue'),
    },
  ],
}
